/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package inmobiliariafrsf;

import entidades.Sesion;
import entidades.Vendedor;
import java.util.Calendar;
import java.util.Date;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.UIManager;
import vista.*;
/**
 *
 * @author Simón Cifre
 */
public class InmobiliariaFRSF {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            System.err.println("Error cargando L&F: " + e.getMessage());
        }
        
        JDialog login = new VLogin(null);
        login.setVisible(true);
    }
    
    public static void lanzarVentanaPrincipal(JDialog vLogin, Vendedor vendedorLogeado)
    {
        vLogin.dispose();
        JFrame vP = new VPrincipal(vendedorLogeado);
        vP.setVisible(true);
    }
}
